package ui;

public class TimeSeriesName implements Comparable<TimeSeriesName>{

	private final TimeSeriesType type;

	private final String name;

	private final String groupName;

	public TimeSeriesName(TimeSeriesType type, String groupName, String name) {
		this.type = type;
		this.groupName = groupName;
		this.name = name;
	}

	public String getName() {
		return name;
	}
	
	public String getGroupName() {
		return groupName;
	}
	
	public TimeSeriesType getType() {
		return type;
	}
	
	@Override
	public int compareTo(TimeSeriesName o) {
		return this.getName().compareTo(o.getName());
	}

	@Override
	public String toString() {
		return name;
	}
	
	public enum TimeSeriesType {
		SPEED,
		AVERAGE_SPEED,
		ELEVATION,
		DISTANCE,
		HEARTRATE
	};
}
